import http from "@/utils/http";
import type * as Template from "./type";

/**
 * 查询售后原因列表
 */
export const listTemplate = data => {
  return http.get<Template.TreeItem[]>("/crm/serviceReason/node/listTree", data);
};

/**
 * 新增售后原因
 */
export const addTemplate = (data: Template.TemplateParams) => {
  return http.post("/crm/serviceReason/node/add", data);
};
/**
 * 删除售后原因
 */
export const delTemplate = data => {
  return http.deleteMethod("/crm/serviceReason/node/del", data);
};
